#include <iostream>
#include <thread>
#include <chrono>
using namespace std;

// int main() { 
//     cout << "enter main function" << endl;
//     int i = 0;
//     for (;;) {
//         cout << "i have looped " << ++i << " times" << endl;
//         this_thread::sleep_for(chrono::seconds(1));
//     }
//     return 0; 
// }

void test(int i, double d, char* ptr) {
    cout << "enter test function" << endl;
    this_thread::sleep_for(chrono::seconds(3));
    cout << "exit test function" << endl;
}

int main(int argc, char** argv) {
    test(1, 3.14, nullptr);
    cout << "quit main function" << endl;
    return 0;
}